{% extends "base.html" %} {% load staticfiles %}
{% block title %} 用户信息|老鑫头の个人博客 {% endblock title %}
{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-12" align="center">
                <br>
                <div class="col-md-4">用户名：{{ user.username }}</div>
                <br>
                <br>
                <form method="post" action=".">
                    {% csrf_token %}

                    <!-- email -->
                    <div class="col-md-4">邮箱：{{ user.email }}</div>
                    <br>
                    <br>
                    <!-- phone -->
                    <div class="form-group col-md-4">
                        <label for="phone">电话：</label>
                        <input style="text-align: center" type="text" class="form-control" id="phone" name="phone" value="{{ profile.phone }}">
                    </div>

                    <!-- bio -->
                    <div class="form-group col-md-4">
                        <label for="bio">简介：</label>
                        <textarea type="text" class="form-control" id="bio" name="bio"
                                  rows="12" style="text-indent: 2em">{{ profile.bio }}</textarea>
                    </div>
                    <!-- 提交按钮 -->
                    <button type="submit" class="btn btn-primary">提交</button>
                </form>
            </div>
        </div>
    </div>
{% endblock content %}